// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.HtAdminServices;

/// <summary>
///     Description 菜单表
/// </summary>
public class HtMenuOut
{
    /// <Summary>
    ///     ID
    /// </Summary>
    public long Id { get; set; }

    /// <summary>
    ///     区域
    /// </summary>
    public string Area { get; set; }

    /// <Summary>
    ///     菜单名称
    /// </Summary>
    public string Name { get; set; }

    /// <Summary>
    ///     图标
    /// </Summary>
    public string Icon { get; set; }

    /// <Summary>
    ///     顺序
    /// </Summary>
    public int Sort { get; set; }

    /// <Summary>
    ///     Url
    /// </Summary>
    public string Url { get; set; }

    /// <Summary>
    ///     备注
    /// </Summary>
    public string Remark { get; set; }

    /// <Summary>
    ///     是否展开菜单
    /// </Summary>
    public bool IsExpand { get; set; }

    /// <Summary>
    ///     节点类型(菜单、工具栏)
    /// </Summary>
    public int MenuType { get; set; }

    /// <Summary>
    ///     创建用户ID
    /// </Summary>
    public long CreatorUserId { get; set; }

    /// <Summary>
    ///     创建用户
    /// </Summary>
    public string CreatorUserName { get; set; }

    /// <Summary>
    ///     创建时间
    /// </Summary>
    public DateTimeOffset CreationTime { get; set; }

    /// <Summary>
    ///     更新用户ID
    /// </Summary>
    public long UpdateUserId { get; set; }

    /// <Summary>
    ///     更新用户
    /// </Summary>
    public string UpdateUserName { get; set; }

    /// <Summary>
    ///     更新时间
    /// </Summary>
    public DateTimeOffset UpdateTime { get; set; }

    /// <Summary>
    ///     默认假删除
    /// </Summary>
    public bool IsDeleted { get; set; }

    /// <Summary>
    ///     删除用户ID
    /// </Summary>
    public long DeletedUserId { get; set; }

    /// <Summary>
    ///     删除用户
    /// </Summary>
    public string DeletedUserName { get; set; }

    /// <Summary>
    ///     删除时间
    /// </Summary>
    public DateTimeOffset DeletedTime { get; set; }

    /// <Summary>
    /// </Summary>
    public bool IsDisuse { get; set; }

    /// <Summary>
    ///     是否系统菜单
    /// </Summary>
    public bool IsSystem { get; set; }

    /// <Summary>
    ///     是否显示
    /// </Summary>
    public bool IsShow { get; set; }

    /// <Summary>
    ///     菜单ID
    /// </Summary>
    public string Code { get; set; }

    /// <Summary>
    ///     父Id
    /// </Summary>
    public string PCode { get; set; }

    /// <Summary>
    ///     是否可用
    /// </Summary>
    public bool IsEnable { get; set; }

    /// <Summary>
    /// </Summary>
    public int OpenType { get; set; }

    /// <summary>
    ///     权限
    /// </summary>
    public string PermissionStr { get; set; }

    /// <summary>
    ///     控制器
    /// </summary>
    public string Controller { get; set; }

    /// <summary>
    ///     后台菜单页面名称(例如：index、info),API 接口可为空
    /// </summary>
    /// <summary>
    ///     方法/Action名称,多个用英文逗号隔开
    /// </summary>
    public string Actions { get; set; }

    #region treetable信息

    public List<HtMenuOut> children { get; set; }
    public bool IsParent { get; set; }

    #endregion treetable信息
}